#pragma once
#include <iostream>
#include <string>
#include <memory>
#include <unordered_map>
#include <cstdlib>
#include <cassert>
#include "epollserve.hpp"
#include "procotol.hpp"
#include "code.hpp"
#include "threadPoll.hpp"
bool button = true;
void Funtion(int sock, std::string &request, std::unordered_map<int, IO *> &ptr)
{
    // 交给线程池
    Thread<std::string> *str = Thread<std::string>::Get();
    if (button)
        str->Run(button, ptr, sock);
    str->push(request);
    // 清理缓冲区
    request.clear();
}
